//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class ForestsRemove extends LogicCommand {
    final int cmdId = 20;
    final int forestTreeInstanceId;

    public ForestsRemove(int ticks, int treeInstanceId) {
        super(ticks);
        this.forestTreeInstanceId = treeInstanceId;
    }

    public int getCommandId() {
        return 20;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(20);
        stream.writeInt(this.forestTreeInstanceId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
